#include "app_mqtt.h"
#include "log.h"
#include <unistd.h>
#include <stdio.h>

int receive(char *data,int len){
    printf("数据：%s,长度：%d",data,len);
    return 0;
}

int main(int argc, char const *argv[])
{
    char *buff = "hello world";
    app_mqtt_init();
    app_mqtt_receivecallback(&receive);
    app_mqtt_send(buff,11);
    sleep(1000);
    while (1)
    {
        
    }
    app_mqtt_destroy();
    return 0;
}

